<template>
    <div class="loginMain">
        <div style="width:100%;height:100%;background-color: rgba(0, 0, 0, 0.2);z-index:10;position:absolute;"></div>
        <Top2 class="top" />
        <img src="../assets/凶猛的狼.png" style="width: 100%;height:180%;position:absolute;top:-50%;" />
        <h1 style="color:white;position:absolute;font-size:70px;top:35%;left: 26.3%;z-index:10">涉诈APP智能识别分析</h1>
        <h6 style="color:white;position:absolute;font-size:40px;top:50%;left:28%;z-index:10;">balabalabalabala detection hdasuhu
        </h6>
        <div class="loginBox">
            <div
                style="position:absolute; border-radius:30px;box-shadow: 0 0px 35px rgba(0,0,0,0.8);width:40%;height:50%;top:20%;left:30%;overflow: hidden;">
                <div class="isosceles-triangle-left">
                    <Login />
                </div>
                <div class="isosceles-triangle-right">
                   <Register/>
                </div>
            </div>
        </div>
    </div>
</template>
<script lang="ts" setup>
import Login from '@/components/LoginAndRegister/Login.vue'
import Register from '@/components/LoginAndRegister/Register.vue'
import Top2 from '@/components/home/Top2.vue'
</script>
<style scoped>
.loginMain {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.loginBox {
    width: 100%;
    height: 100%;
    background-color: antiquewhite;
}

.isosceles-triangle-left {
    position: absolute;
    top: -470px;
    left: 265px;
    width: 350px;
    height: 550px;
    /* height:80px; */
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0px 35px rgba(0, 0, 0, 0.8);
    border-radius: 0px 0px 30px 30px;
    transition: transform 0.3s ease;
    z-index:15;
}

.isosceles-triangle-right {
    position: absolute;
    top: -470px;
    right: 265px;
    width: 350px;
    height: 550px;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0px 35px rgba(0, 0, 0, 0.8);
    /* height:80px; */
    border-radius: 0px 0px 30px 30px;
    transition: transform 0.3s ease;
    z-index:15;
}

.isosceles-triangle-left:hover,
.isosceles-triangle-right:hover {
    /* 鼠标悬停时的样式 */
    transform: translateY(470px);
    /* 向下移动400px */
}

.top {
    position: fixed;
    top: 40%;
    left: 1400px;
    width: 250px;
    height: 140px;
    border-radius: 10px 0px 0px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0px 35px rgba(0, 0, 0, 0.6);
    z-index: 100;
}
</style>